#include "DTD_Attribut.h"

using namespace std;

DTD_Attribut::DTD_Attribut( string name, DTD_Type * type , string declaration )
{
	this->name = name;
	this->type = type;
	this->declaration = declaration;
}


DTD_Attribut::~DTD_Attribut()
{
	// Suppression du type.
    delete type;
}

string DTD_Attribut::toString()
{

	return (" " + name + " "  + type->toString() + " " + declaration + " ");

}

